Skip to main content
Version: Upcoming

LiveImpliedQuoteAdj

V8 Message Definiton

METADATA

AttributeValue
Topic1000-analytics
MLink TokenOptAnalytics
ProductSRAnalytics
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
okey_atenum - AssetTypePRI'None'
okey_tsenum - TickerSrcPRI'None'
okey_tkVARCHAR(12)PRI''
okey_yrSMALLINT UNSIGNEDPRI, SEC0
okey_mnTINYINT UNSIGNEDPRI, SEC0
okey_dyTINYINT UNSIGNEDPRI, SEC0
okey_xxDOUBLEPRI0
okey_cpenum - CallPutPRI'Call'
ticker_atenum - AssetType'None'
ticker_tsenum - TickerSrc'None'
ticker_tkVARCHAR(12)SEC''
uprcFLOAT0underlier price usually midmarket
yearsFLOAT0years to expiration
rateFLOAT0interest rate
sdivFLOAT0sdiv stock dividend rate
ddivFLOAT0cumulative discrete dividend values
obidFLOAT0option bid price
oaskFLOAT0option ask price
obivFLOAT0volatility implied by option bid price
oaivFLOAT0volatility implied by option ask price
satmFLOAT0option atm volatility from SR surface
smnyFLOAT0option moneyness
svolFLOAT0option surface volatility
sprcFLOAT0option surface price
smrkFLOAT0option surface price wbounding rules
veSlopeFLOAT0veSlope dVol dUprc assuming vol xAxis 0 remains constanthedgeDelta de ve 100 veSlope if hedging with this assumption
deFLOAT0option delta
gaFLOAT0option gamma
thFLOAT0option theta
veFLOAT0option vega
vaFLOAT0option vanna
voFLOAT0option volga
roFLOAT0option rho
phFLOAT0option phi
deDecayFLOAT0option delta decay
up50FLOAT0underlier up 50 slide
dn50FLOAT0underlier dn 50 slide
up15FLOAT0underlier up 15 slide
dn15FLOAT0underlier dn 15 slide
up06FLOAT0underlier up 6 slide
dn08FLOAT0underlier dn 8 slide
synSpotDOUBLE0Synthetic spot price marketderived spot when the underlying is not a traded instrument
priceTypeenum - CalcPriceType'None'Equity or Future Black76 pricing framework if Future then uPrc is the forwardUPrc and sdiv rate
calcErrVARCHAR(24)''option pricing error if any
calcSourceenum - CalcSource'None'
uPrcAdjResultenum - AdjResult'None'
timestampDATETIME(6)'1900-01-01 00:00:00.000000'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
okey_tk1
okey_yr2
okey_mn3
okey_dy4
okey_xx5
okey_cp6
okey_at7
okey_ts8

SECONDARY INDEX (ExpirationIndex) (Not Unique)

FieldSequence
okey_yr1
okey_mn2
okey_dy3

SECONDARY INDEX (TickerIndex) (Not Unique)

FieldSequence
ticker_tk1

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRAnalytics`.`MsgLiveImpliedQuoteAdj` (
`okey_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`okey_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`okey_tk` VARCHAR(12) NOT NULL DEFAULT '',
`okey_yr` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`okey_mn` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`okey_dy` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`okey_xx` DOUBLE NOT NULL DEFAULT 0,
`okey_cp` ENUM('Call','Put','Pair') NOT NULL DEFAULT 'Call',
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '',
`uprc` FLOAT NOT NULL DEFAULT 0 COMMENT 'underlier price (usually mid-market)',
`years` FLOAT NOT NULL DEFAULT 0 COMMENT 'years to expiration',
`rate` FLOAT NOT NULL DEFAULT 0 COMMENT 'interest rate',
`sdiv` FLOAT NOT NULL DEFAULT 0 COMMENT 'sdiv (stock dividend) rate',
`ddiv` FLOAT NOT NULL DEFAULT 0 COMMENT 'cumulative discrete dividend values',
`obid` FLOAT NOT NULL DEFAULT 0 COMMENT 'option bid price',
`oask` FLOAT NOT NULL DEFAULT 0 COMMENT 'option ask price',
`obiv` FLOAT NOT NULL DEFAULT 0 COMMENT 'volatility implied by option bid price',
`oaiv` FLOAT NOT NULL DEFAULT 0 COMMENT 'volatility implied by option ask price',
`satm` FLOAT NOT NULL DEFAULT 0 COMMENT 'option atm volatility (from SR surface)',
`smny` FLOAT NOT NULL DEFAULT 0 COMMENT 'option moneyness',
`svol` FLOAT NOT NULL DEFAULT 0 COMMENT 'option surface volatility',
`sprc` FLOAT NOT NULL DEFAULT 0 COMMENT 'option surface price',
`smrk` FLOAT NOT NULL DEFAULT 0 COMMENT 'option surface price (w/bounding rules)',
`veSlope` FLOAT NOT NULL DEFAULT 0 COMMENT 'veSlope = dVol / dUprc (assuming vol @ xAxis = 0 remains constant);hedgeDelta = (de + ve * 100 * veSlope) if hedging with this assumption',
`de` FLOAT NOT NULL DEFAULT 0 COMMENT 'option delta',
`ga` FLOAT NOT NULL DEFAULT 0 COMMENT 'option gamma',
`th` FLOAT NOT NULL DEFAULT 0 COMMENT 'option theta',
`ve` FLOAT NOT NULL DEFAULT 0 COMMENT 'option vega',
`va` FLOAT NOT NULL DEFAULT 0 COMMENT 'option vanna',
`vo` FLOAT NOT NULL DEFAULT 0 COMMENT 'option volga',
`ro` FLOAT NOT NULL DEFAULT 0 COMMENT 'option rho',
`ph` FLOAT NOT NULL DEFAULT 0 COMMENT 'option phi',
`deDecay` FLOAT NOT NULL DEFAULT 0 COMMENT 'option delta decay',
`up50` FLOAT NOT NULL DEFAULT 0 COMMENT 'underlier up 50% slide',
`dn50` FLOAT NOT NULL DEFAULT 0 COMMENT 'underlier dn 50% slide',
`up15` FLOAT NOT NULL DEFAULT 0 COMMENT 'underlier up 15% slide',
`dn15` FLOAT NOT NULL DEFAULT 0 COMMENT 'underlier dn 15% slide',
`up06` FLOAT NOT NULL DEFAULT 0 COMMENT 'underlier up 6% slide',
`dn08` FLOAT NOT NULL DEFAULT 0 COMMENT 'underlier dn 8% slide',
`synSpot` DOUBLE NOT NULL DEFAULT 0 COMMENT 'Synthetic spot price (market-derived spot when the underlying is not a traded instrument)',
`priceType` ENUM('None','Equity','Future') NOT NULL DEFAULT 'None' COMMENT 'Equity or Future (Black76) pricing framework; if Future then uPrc is the forwardUPrc and sdiv = rate',
`calcErr` VARCHAR(24) NOT NULL DEFAULT '' COMMENT 'option pricing error (if any)',
`calcSource` ENUM('None','Tick','Loop') NOT NULL DEFAULT 'None',
`uPrcAdjResult` ENUM('None','OK','InvalidUPrc','UPrcRangeErr','OtherError','NullOption','StaleUPrc') NOT NULL DEFAULT 'None',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
PRIMARY KEY USING HASH (`okey_tk`,`okey_yr`,`okey_mn`,`okey_dy`,`okey_xx`,`okey_cp`,`okey_at`,`okey_ts`),
KEY `ExpirationIndex` (`okey_yr`,`okey_mn`,`okey_dy`) USING HASH,
KEY `TickerIndex` (`ticker_tk`) USING HASH
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='';

SELECT TABLE EXAMPLE QUERY

SELECT
`okey_at`,
`okey_ts`,
`okey_tk`,
`okey_yr`,
`okey_mn`,
`okey_dy`,
`okey_xx`,
`okey_cp`,
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`uprc`,
`years`,
`rate`,
`sdiv`,
`ddiv`,
`obid`,
`oask`,
`obiv`,
`oaiv`,
`satm`,
`smny`,
`svol`,
`sprc`,
`smrk`,
`veSlope`,
`de`,
`ga`,
`th`,
`ve`,
`va`,
`vo`,
`ro`,
`ph`,
`deDecay`,
`up50`,
`dn50`,
`up15`,
`dn15`,
`up06`,
`dn08`,
`synSpot`,
`priceType`,
`calcErr`,
`calcSource`,
`uPrcAdjResult`,
`timestamp`
FROM `SRAnalytics`.`MsgLiveImpliedQuoteAdj`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`okey_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`okey_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`okey_tk` = 'Example_okey_tk'
AND
/* Replace with a SMALLINT UNSIGNED */
`okey_yr` = 123
AND
/* Replace with a TINYINT UNSIGNED */
`okey_mn` = 1
AND
/* Replace with a TINYINT UNSIGNED */
`okey_dy` = 1
AND
/* Replace with a DOUBLE */
`okey_xx` = 4.56
AND
/* Replace with a ENUM('Call','Put','Pair') */
`okey_cp` = 'Call';

Doc Columns Query

SELECT * FROM SRAnalytics.doccolumns WHERE TABLE_NAME='LiveImpliedQuoteAdj' ORDER BY ordinal_position ASC;